package com.dorm.controller;

import com.dorm.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.CrossOrigin;

@RestController
@CrossOrigin(origins = {"http://localhost:5500", "http://127.0.0.1:5500"})
public class TestController {
    @GetMapping("/api/test")
    public Result<String> test() {
        return Result.success("API is working!");
    }
} 